@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="itemInfoForm">
            <input type="hidden" id="contentVal" value='${item.content}'/>
            <input type="hidden" id="id" value="${item.id}"/>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <div class="col-sm-12">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">标题</label>
                                <div class="col-sm-11">
                                    <input class="form-control" id="title" name="title" type="text" value="${item.title}" underline="true">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">模块类别</label>
                        <div class="col-sm-11">
                            <#select id="category" name="">
                            @for(model in list){
                            <option value=${model.id}>${model.category}</option>
                            @}
                        </#select>
                    </div>
                </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">内容</label>
                        <div class="col-sm-11">
                            <div id="text" class="editorHeight">
                                <div id="toolbar" class="toolbar"></div>
                                <div id="editor" class="editor">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="ItemInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="ItemInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/item/item/item_detail.js"></script>
<script src="${ctxPath}/static/js/plugins/wangEditor/wangEditor.js"></script>
@}
